<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('环保金总数列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<input  id="wxUserId" th:field="*{wxUser.id}" type="hidden"/>
					<div class="select-list">

								姓名：<input type="text" name="realName"th:field="*{wxUser.realName}" readonly="readonly"/>


								手机号：<input type="text" name="phone" th:field="*{wxUser.phone}" readonly="readonly"/>


								环保金总数：<input type="text" name="totalMoney"th:field="*{wxUser.totalMoney}"readonly="readonly"/>


					</div>
				</form>
			</div>
			
	       <!-- <div class="btn-group-sm" id="toolbar" role="group">
			</div>-->
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:envirBonusTotal:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:envirBonusTotal:remove')}]];
        var prefix = ctx + "system/envirBonusTotal";
		var datas = [[${@dict.getType('sys_user_sex')}]];
		var wxUserId=$("#wxUserId").val()
		var sources = [[${@dict.getType('sys_money_source')}]];

        $(function() {
            var options = {
                url: prefix + "/detailedList?wxUserId="+wxUserId,
                modalName: "环保金总数",
				showSearch: false,
				showRefresh: false,
				showToggle: false,
				showColumns: false,
                columns: [{
		            checkbox: true
		        },
					{
						field : 'id',
						title : '',
						visible: false
					},{
						field : 'money',
						title : '环保金'
					},{
						field : 'type',
						title : '来源',
						formatter: function(value, row, index) {
							return $.table.selectDictLabel(sources, value);
						}
					},{
						field : 'createTime',
						title : '交易日期'
					}]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>